Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bench): evaluate review writing in ReviewBench #917

Merged
merged 22 commits into from
Jan 1, 2025

Conversation

timsanders256
Copy link
Collaborator

Closes #

πŸ“‘ Description

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed
  • Branch name follows type/descript (e.g. feature/add-llm-agents)
  • Ready for code review

β„Ή Additional Information

Copy link

codecov bot commented Nov 30, 2024

Codecov Report

Attention: Patch coverage is 11.19403% with 357 lines in your changes missing coverage. Please review.

Project coverage is 63.87%. Comparing base (351bffb) to head (d8412ad).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
research_bench/review_writing.py 0.00% 151 Missing ⚠️
research_bench/eval.py 0.00% 129 Missing ⚠️
research_bench/run_review_eval.py 0.00% 67 Missing ⚠️
research_bench/proposal_writing.py 0.00% 7 Missing ⚠️
research_bench/create_bench_from_conference.py 0.00% 1 Missing ⚠️
research_town/envs/env_review_writing.py 66.66% 1 Missing ⚠️
research_town/utils/string_mapper.py 85.71% 1 Missing ⚠️
@@            Coverage Diff             @@
##             main     #917      +/-   ##
==========================================
- Coverage   70.13%   63.87%   -6.26%     
==========================================
  Files          80       82       +2     
  Lines        3569     3900     +331     
==========================================
- Hits         2503     2491      -12     
- Misses       1066     1409     +343     
Files with missing lines Coverage Ξ”
research_bench/run_proposal_eval.py 0.00% <ΓΈ> (ΓΈ)
research_town/agents/agent.py 90.69% <100.00%> (+0.22%) ⬆️
research_town/configs/config.py 94.64% <ΓΈ> (-0.23%) ⬇️
research_town/data/data.py 100.00% <100.00%> (ΓΈ)
research_town/utils/agent_prompter.py 94.69% <100.00%> (+0.24%) ⬆️
tests/agents/test_agents.py 100.00% <100.00%> (ΓΈ)
tests/mocks/mocking_func.py 72.54% <ΓΈ> (-15.18%) ⬇️
tests/utils/test_string_mapper.py 100.00% <100.00%> (ΓΈ)
research_bench/create_bench_from_conference.py 0.00% <0.00%> (ΓΈ)
research_town/envs/env_review_writing.py 95.65% <66.66%> (-0.35%) ⬇️
... and 5 more

... and 1 file with indirect coverage changes

@lwaekfjlk
Copy link
Member

@timsanders256 is this PR ready to merge now?

@lwaekfjlk lwaekfjlk changed the title Evaluate Review Writing in Research Bench Evaluate Review Writing in ReviewBench Dec 31, 2024
)
self.rebuttals.append(rebuttal)
yield rebuttal, self.leader
# self.rebuttals: List[Rebuttal] = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this directly instead of commenting.

print(f'Token input count: {token_input_count}')
print(f'Token output count: {token_output_count}')

# # save all inputs and outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete these comments.

token_output_count += token_counter(model=model_name, text=strength)
token_output_count += token_counter(model=model_name, text=weakness)

# # save all inputs and outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete these comments.

@lwaekfjlk lwaekfjlk changed the title Evaluate Review Writing in ReviewBench feat(bench): evaluate review writing in ReviewBench Dec 31, 2024
generated_weakness: str,
) -> Dict[str, List[float]]:
metrics_raw: Dict[str, Any] = {
# 'bleu': [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete these comments

@lwaekfjlk lwaekfjlk merged commit 4b267ed into main Jan 1, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants